package com.guomei.bean;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class RegisterDTO {
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @NotNull(message = "手机号不能为空")
    private String phone;

    @NotBlank(message = "验证码不能为空")
    @NotNull(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "密码不能为空")
    @NotNull(message = "密码不能为空")
    private String password;
    //微信首次登入 无账号转发注册表示
    private boolean wxAuto;
    //临时存储id
    private String tempUserId;

    private String avatar; // 头像，选填

    private String invitationCode; // 邀请码，选填

    private String courseId; //课程id

    /**
     * 昵称
     */
    private String nickname;
}
